<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html,
        body {
            padding: 0px;
            margin: 0px;
        }

        .container {
            margin: 10px;
            border: 1px solid red;
            width: 400px;
            height: 400px;
            overflow: hidden;
            padding: 10px;
        }

        .container div {
            margin: 10px;
            width: 200px;
            height: 200px;
            border: 1px solid black;
            box-sizing: border-box;
        }
    </style>
</head>

<body>
    <div class="container">
        <div></div>
    </div>

</body>

</html>